<template>
  <div class="about">
    <h1>This is an about page</h1>
    <h2>{{ title }}</h2>
    <button @click="cli">点击子传父</button>
    <button @click="jump">跳转</button>
  </div>
</template>

<script setup>
import {useRouter}from 'vue-router'
const Router=useRouter()
const propos=defineProps({
  title:String
})
const emit=defineEmits(['active'])
const cli=()=>{
emit('active',"this is data")
}
const jump =()=>{
  Router.push('/my')
}
</script>
